import { createWebHashHistory, createRouter } from "vue-router";
import Chapter01 from "../views/chapter01";
import Chapter02 from "../views/chapter02";
import Chapter03 from "../views/chapter03";
import Chapter04 from "../views/chapter04";
import Chapter05 from "../views/chapter05";
import Chapter06 from "../views/chapter06";
import Chapter07 from "../views/chapter07";
import Chapter08 from "../views/chapter08";

const routes = [
    {
        path: "/",
        redirect: "/chapter01"
    },
    {
        path: "/chapter01",
        component: Chapter01
    },
    {
        path: "/chapter02",
        component: Chapter02
    },
    {
        path: "/chapter03",
        component: Chapter03
    },
    {
        path: "/chapter04",
        component: Chapter04
    },
    {
        path: "/chapter05",
        component: Chapter05
    },
    {
        path: "/chapter06",
        component: Chapter06
    },
    {
        path: "/chapter07",
        component: Chapter07
    },
    {
        path: "/chapter08",
        component: Chapter08
    }
];

const router = createRouter({
    history: createWebHashHistory(),
    routes
});

export default router;
